﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain
{
    /// <summary>
    /// 请假表
    /// </summary>
    public class LeaveApplicationForm
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int FormId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        public int DepartId { get; set; }
        /// <summary>
        /// 请假类别
        /// </summary>
        public int LeaveCategory {  get; set; }
        /// <summary>
        /// 请假开始时间
        /// </summary>
        public DateTime BeginTime { get; set; }
        /// <summary>
        /// 请假结束时间
        /// </summary>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 报道时间
        /// </summary>
        public DateTime BaoDaoTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 总工时
        /// </summary>
        public int Zongtime { get; set; }

        /// <summary>
        /// 请假事由
        /// </summary>
        public string LeaveReason { get; set; }
        /// <summary>
        /// 部门领导
        /// </summary>
        public int DepartName { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public Status Status { get; set; }

        /// <summary>
        /// 删除标识符
        /// </summary>
        public bool IsDeleted { get; set; }
        /// <summary>
        /// 拒绝后的原因
        /// </summary>
        public string? Reson {  get; set; }


    }

    /// <summary>
    /// 审批状态 
    /// </summary>
    public enum Status
    {
        
        待审核=1,
        已审核=2,
        已完成通过=3,
        已完成不通过=4
    }


}
